package com.qf.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by 54110 on 2021/4/30.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResult {

    private Integer  code;

    private String message;

    private Object data;

    private Long total;

    public BaseResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public BaseResult( Integer code,String message,Object data) {
        this.message = message;
        this.data = data;
        this.code = code;
    }


}
